﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DTO;
using DAO;
namespace BUS
{
    public class DonViTinhBUS
    {
        public List<DonViTinhDTO> LayDanhSachDonViTinh()
        {
            DonViTinhDAO dvDAO = new DonViTinhDAO();
            return dvDAO.LayDanhSachDonViTinh();
        }
        public string LayTenDonViTinh(int maDV)
        {
            DonViTinhDAO dvDAO = new DonViTinhDAO();
            return dvDAO.LayTenDonViTinh(maDV);
        }
         public int LayMaDonViTinh(string ten)
        {
             DonViTinhDAO dvDAO = new DonViTinhDAO();
             return dvDAO.LayMaDonViTinh(ten);
         }
    }
}
